package com.binguo.thirdPay.JianHangWXPay;

import java.util.SortedMap;
import java.util.TreeMap;

/**
 * @author yuritian
 * @Title: JianHangWXPayService
 * @ProjectName binguoDevelop
 * @Description: TODO
 * @date 2019-06-2709:39
 */
public class JianHangWXPayService {

    private static final String MERCHANTID  = "105910100002530";

    private static final String POSID = "662240350";

    private static final String BRANCHID = "650000000";

    private static final String CURCODE = "01";

    private static final String TXCODE = "530590";

    private static final String PUB = "";

    private static final String APPID= "wx099356561cb9c60f";

    public void JianHangWXPay(String orderNO,String price,String openID){

        SortedMap<String, String> map = new TreeMap<>();
        map.put("MERCHANTID",MERCHANTID);
        map.put("POSID",POSID);
        map.put("BRANCHID",BRANCHID);
        map.put("ORDERID",orderNO);
        map.put("PAYMENT ",price);
        map.put("CURCODE",CURCODE);
        map.put("TXCODE",TXCODE);
        map.put("TYPE ","1");
        map.put("PUB",PUB);
        map.put("GATEWAY","0");
        map.put("TRADE_TYPE","MINIPRO");
        map.put("SUB_APPID",APPID);
        map.put("SUB_OPENID",openID);

        String signBefore = "";
    }

}
